package com.zhentao.day03.pm;

public class Pen extends Stationery{

  private String color ;

  public Pen(){}
  public Pen(String color){ this.color = color ;  }

  public void setColor(String color) {
    this.color = color;
  }

  public String getColor(){ return  this.color;}

  @Override
  public void show() {
    System.out.println("笔信息 : 名称 = "
        + getName()
        + " , 数量 = " + getNum()
        + " , 价格 = " + getPrice()
        + " , 颜色 = " + getColor()
        );
  }
}
